package com.example.demo.dao;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class User {

    private Integer id;
    @NotBlank(message = "账户不能为空")
    private String username;


    private String password;

    private String name;

    private Integer role_Id;

    private Integer pid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Integer getRoleId() {
        return role_Id;
    }

    public void setRoleId(Integer roleId) {
        this.role_Id = roleId;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }
}
